const sixtyStytem = num => {
  let arr = []
  while (num >= 60) {
    let resideeNum = num % 60;
    num = Math.floor(num / 60)
    arr.push(resideeNum)
  }

  let newNum = 0;
  for (let i = 0; i < arr.length; i++) {
    newNum += arr[i] * Math.pow(10, i)
  }
  return newNum
}

console.log(sixtyStytem(100));